package com.jtny;


import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.PropertySource;

/**
 * Springboot启动类
 *
 * @author 智慧能源中心-ghy
 * @version 2.0
 * @package com.jtny
 * @fileName ConfigWebappApplication.java
 * @createTime 2024年07月12日 10:21
 * @Copyright© 2024 jtny
 * 江投能源技术研究院 版权所有
 */
@EnableFeignClients
@PropertySource("classpath:params.properties")
@SpringBootApplication(scanBasePackages = {"com.jtny"}, exclude = {SecurityAutoConfiguration.class})
@MapperScan("com.jtny.**.dao")
public class ConfigWebappApplication {

    private static final Logger logger = LoggerFactory.getLogger(ConfigWebappApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(ConfigWebappApplication.class, args);
        logger.info("ConfigWebappApplication工程启动成功！");
    }
}
